my_list = ['a', 'b', 'c']

for idx,val in enumerate(my_list): # 迭代器
    print(idx,val)